package net.realsee.service.wcs.device;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.device.WcsVehicle;
import net.realsee.domain.wcs.device.bo.WcsVehicleBo;
import net.realsee.domain.wcs.device.vo.WcsVehicleVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 车辆Service接口
 *
 * @author realsee
 * @date 2023-08-11
 */
public interface IWcsVehicleService extends IService<WcsVehicle> {

    /**
     * 查询车辆
     */
    WcsVehicleVo selectVoById(Long id);

    /**
     * 查询车辆列表
     */
    TableDataInfo<WcsVehicleVo> selectVoPage(WcsVehicleBo bo, PageQuery pageQuery);

    /**
     * 查询车辆列表
     */
    List<WcsVehicleVo> selectVoList(WcsVehicleBo bo);

    /**
     * 新增车辆
     */
    Boolean insertByBo(WcsVehicleBo bo);

    /**
     * 修改车辆
     */
    Boolean updateByBo(WcsVehicleBo bo);

    /**
     * 校验并批量删除车辆信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
